{extend name="default/base/base_seller" /}
{block name="seller_main"}

<div class="dssc-flow-layout">
    <div class="dssc-flow-container">
        <div class="title">
            <h3>{$Think.lang.refund_service}</h3>
        </div>
        <div id="saleRefundreturn">
            <div class="dssc-flow-step">
                <dl class="step-first current">
                    <dt>{$Think.lang.application_return}</dt>
                    <dd class="bg"></dd>
                </dl>
                <dl class="{if $return.seller_time>0}current{/if}">
                    <dt>{$Think.lang.merchants_process_applications_returns}</dt>
                    <dd class="bg"> </dd>
                </dl>
                <dl class="{if $return.ship_time > 0 || $return.return_type==1}current{/if}">
                    <dt>{$Think.lang.buyers_return_goods_merchants}</dt>
                    <dd class="bg"> </dd>
                </dl>
                <dl class="{if $return.admin_time > 0 }current{/if}">
                    <dt>{$Think.lang.confirm_goods}</dt>
                    <dd class="bg"> </dd>
                </dl>
            </div>
            <div class="dssc-form-default">
                <h3>{$Think.lang.buyer_returns_refund_application}</h3>
                <dl>
                    <dt>{$Think.lang.refund_number}：</dt>
                    <dd>{$return.refund_sn} </dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.applicant_buyers}：</dt>
                    <dd>{$return.buyer_name}</dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.return_buyer_message}{$Think.lang.ds_colon}</dt>
                    <dd> {$return.reason_info} </dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.refund_amount}：</dt>
                    <dd>{$Think.lang.currency}{$return.refund_amount} </dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.return_order_return}{$Think.lang.ds_colon}</dt>
                    <dd>{if $return.return_type == 2}{$return.goods_num}{else/}{$Think.lang.there_no}{/if}</dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.return_instructions}：</dt>
                    <dd> {$return.buyer_message} </dd>
                </dl>
                <dl>
                    <dt>{$Think.lang.credentials_upload}：</dt>
                    <dd>
                        {notempty name="pic_list"}
                        <ul class="dssc-evidence-pic">
                            {foreach name="pic_list" item="val" key="key" }
                            {notempty name="val"}
                            <li><a href="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_PATH}/refund/{$val}" data-lightbox="lightbox-image"> <img class="show_image" src="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_PATH}/refund/{$val}"></a></li>
                            {/notempty}
                            {/foreach}
                        </ul>
                        {/notempty}
                    </dd>
                </dl>
                <h3>{$Think.lang.business_processing}</h3>
                <dl>
                    <dt>{$Think.lang.processing_state}{$Think.lang.ds_colon}</dt>
                    <dd> {$state_array[$return['seller_state']]}</dd>
                </dl>
                {if $return.seller_time > 0}
                <dl>
                    <dt>{$Think.lang.refund_seller_message}{$Think.lang.ds_colon}</dt>
                    <dd>{$return.seller_message}</dd>
                </dl>
                {/if}
                {if $return['express_id'] > 0 && !empty($return['invoice_no'])}
                <dl>
                    <dt>{$Think.lang.logistics_information}{$Think.lang.ds_colon}</dt>
                    <dd>{$express_name} , {$return.invoice_no}</dd>
                </dl>
                {/if}
                {if $return.receive_time > 0}
                <dl>
                    <dt>{$Think.lang.receiving_note}{$Think.lang.ds_colon}</dt>
                    <dd>{$return.receive_message}</dd>
                </dl>
                {/if}
                {if $return.seller_state == 2 && $return.refund_state >= 2}
                <h3>{$Think.lang.mall_platform_processing_auditing}</h3>
                <dl>
                    <dt>{$Think.lang.platform_confirm}{$Think.lang.ds_colon}</dt>
                    <dd>{$admin_array[$return['refund_state']]}</dd>
                </dl>
                {/if}
                {if $return.admin_time > 0}
                <dl>
                    <dt>{$Think.lang.platform_note}{$Think.lang.ds_colon}</dt>
                    <dd>{$return.admin_message}</dd>
                </dl>
                {/if}
                {if $return['express_id'] > 0 && !empty($return['invoice_no'])}
                <ul class="express-log" id="express_list">
                    <li class="loading">{$Think.lang.ds_common_loading}</li>
                </ul>
                {/if}
                <div class="bottom">
                    <label class=""><a href="javascript:history.go(-1);" class="dssc-btn"><i class="iconfont">&#xe74e;</i>{$Think.lang.returns_list}</a></label>
                </div>
            </div>
        </div>
    </div>
    {include file="default/seller/sellerrefund/seller_refund_right" /}
</div>
<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
{if $return['express_id'] > 0 && !empty($return['invoice_no'])}
<script type="text/javascript">
    $(function () {
        $.getJSON(HOMESITEURL + '/Sellerdeliver/get_express.html?express_code={$express_code}&shipping_code={$return.invoice_no}&t={:random(7)}', function (data) {
            if (data) {
                $('#express_list').html('<li>{$Think.lang.logistics_information_data}</li>' + data);
            } else {
                $('#express_list').html('<li>{$Think.lang.relevant_logistics_information_data}</li>');
            }
        });
    });
</script>
{/if}


{/block}
